package com.itcast.staticdemo.Demo08;

/*
Phoneplus 继承 Phone
*/
public class Phoneplus extends Phone {
    /**
     * 重写父类call方法
     */
    @Override
    public void call(String name) {
        //先执行父类的call方法
        super.call(name);
        System.out.println("用" + getPhoneName() + "打电话！");
        System.out.println(getPhoneName() + "的价格为：" + getPhonePrice());
    }
}
